import Vue from 'vue'
import 'element-ui/lib/theme-chalk/index.css'

// 全导
// import ElementUI from 'element-ui'
// Vue.use(ElementUI)

// 按需导入
import {
  Form, FormItem, Input, Button, Autocomplete,
  Message, MessageBox, Loading, RadioGroup, Radio, RadioButton,
  DatePicker, Container, Header, Main, Footer,
  Menu, MenuItem, Submenu, Badge, Aside, Carousel, CarouselItem, Card,
  Row, Col, Table, TableColumn, Tooltip, Pagination, Dialog
} from 'element-ui'

Vue.use(Form)
  .use(FormItem)
  .use(Input)
  .use(Button)
  .use(Autocomplete)
  .use(Loading)
  .use(RadioGroup)
  .use(Radio)
  .use(RadioButton)
  .use(DatePicker)
  .use(Container)
  .use(Header)
  .use(Main)
  .use(Footer)
  .use(Menu)
  .use(MenuItem)
  .use(Submenu)
  .use(Badge)
  .use(Aside)
  .use(Carousel)
  .use(CarouselItem)
  .use(Card)
  .use(Row)
  .use(Col)
  .use(Table)
  .use(TableColumn)
  .use(Tooltip)
  .use(Pagination)
  .use(Dialog)

Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
